package com.gpf.marketing.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @program: clms-fifth
 * @description: 广告管理实体类
 * @author: 龚鹏飞
 * @create: 2021-07-21 17:49
 **/
@Data
@TableName("tb_advertise")
@ApiModel(value = "广告管理",description = "广告管理")
public class AdvManage implements Serializable {
    @ApiModelProperty(value = "管理id")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "管理名字")
    private String aname;

    @ApiModelProperty(value = "广告位置")
    private Integer positionId;

    @ApiModelProperty(value = "图片")
    private String pic;

    @ApiModelProperty(value = "开始时间")
//    @DateTimeFormat(pattern="yyyy-MM-dd ")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
//    @DateTimeFormat(pattern="yyyy-MM-dd ")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "上下线状态(0下线，1上线)")
    private Integer status;

    @ApiModelProperty(value = "点击数")
    private Integer clickCount;

    @ApiModelProperty(value = "下单数")
    private Integer orderCount;

    @ApiModelProperty(value = "网站")
    private String url;

    @ApiModelProperty(value = "备注")
    private String note;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @TableField(exist = false)//表示数据库中不存在该字段
    private AdvPosition advPosition;

}
